#include "globalVariables.h"

int netDestruct();
int udpBroadcast(string message);

int destruct()
{
	TTF_CloseFont(buttonFont);
	netDestruct();
	return 0;
}

int gameDestruct()
{
	animationList.clear();
	//shown card destruct
	if (cardShown)
	{
		delete cardShown;
	}

	return 0;
}

int netprocessDestruct()
{
	udpBroadcast("LEAVE");
	return 0;
}

int deckeditDestruct()
{
	for (Card* c : editingDeck)
	{
		delete c;
	}
	editingDeck.clear();
	return 0;
}